package cn.itcast.day08.demo01;

import javax.swing.*;
import java.util.ArrayList;

public class MainRedList {
    public static void main(String[] args) {

        Manager manager = new Manager("群主",100);

        Member member1 = new Member("张三",20);
        Member menber2 = new Member("李四",10);
        Member menber3 = new Member("王五",15);

        manager.show();
        member1.show();
        menber2.show();
        menber3.show();
        System.out.println("========");

        ArrayList<Integer> redlist = manager.send(55,3);
        member1.recerive(redlist);
        menber2.recerive(redlist);
        menber3.recerive(redlist);

        System.out.println("========");
        manager.show();
        member1.show();
        menber2.show();
        menber3.show();
    }
}
